<h2 class="block_title_red">
<div class="btrdiv active" id="general_all_news"><a href="javascript:;" onclick="switchtab(this,'news')">Новости</a></div>
<div class="btrdiv" id="general_ukr_news"><a href="javascript:;" onclick="switchtab(this,'news')">Новости Украина</a></div>
</h2>

<div class="list_general_news">
	<?php if( !empty($news) ):?>
		<?php foreach($news as $news_item):?>
				<div class="article">
					<?php if($news_item['image']):?>
						<?php echo link_to('<img title="'.$news_item['image_text'].'" src="/uploads/news/thumbnail_70_70/'.$news_item['image'].'"/>','news_view',$news_item)?>
					<?php endif;?>
					<?php echo link_to($news_item['title'],'news_view',$news_item,'class="entity_header"')?><br/>
					<span class="cat_link">
						<?php echo format_datetime($news_item['updated_at'],'f')?>
					</span><br/>
					<span class="short_description"><?php echo $news_item['short']?></span><br/>
				</div>	
		<?php endforeach;?>
		<br style="clear:both;" /><br/>
	<?php else:?>
	no general news
	<?php endif;?>
</div>

<div class="list_ukr_news" style="display:none;">
<?php if( !empty($news_ukr) ):?>
	<?php foreach($news_ukr as $news_item):?>
			<div class="article">
				<?php if($news_item['image']):?>
					<?php echo link_to('<img title="'.$news_item['title'].'" src="/uploads/news/thumbnail_70_70/'.$news_item['image'].'"/>','news_view',$news_item)?>
				<?php endif;?>
				<?php echo link_to($news_item['title'],'news_view',$news_item,'class="entity_header"')?><br/>
				<span class="cat_link">
					<?php echo format_datetime($news_item['updated_at'],'f')?>
				</span><br/>
				<span class="short_description"><?php echo $news_item['short']?></span><br/>
			</div>
	<?php endforeach;?>
	<br style="clear:both;" /><br/>
<?php else:?>
no ukranian news
<?php endif;?>
</div>

<p align="right"><?php echo link_to('Архив новостей','news/index')?></p>